<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>dingwei</title>
</head>
<style>
    div{
        width: 100%;
        height: 100px;
        border:2px solid blue;
    }
    .div1{
        position: fixed;
        top: 250px;
    }
    .div2{
        position: relative;
        top: 350px;
        left: 300px;
    }

</style>
<body>
    
    <div>

    </div>
    <div class="div1">
        第一个div
    </div>

    <div class="div2">
        第二个div
    </div>
    
</body>
</html>